<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<html:base/>
<html:errors/>
	<c:if test="${requestScope.error!=null}">
		<p id="error"><c:out value="${requestScope.error}"/></p>
	</c:if>
	<html:form action="usuario/nuevo.do?method=add" method="post">
		<ul>
			<li>
				<label>Nombre de usuario</label><html:text property="user" />
			</li>
			<li>
				<label>Introduce la Contraseña</label><html:password property="password" />
			</li>
			<li>
				<label>Vuelva a introducir la Contraseña</label><html:password property="password2" />
			</li>
			<li>
				<label>Nombre</label><html:text property="firstName" />
			</li>
			<li>
				<label>Apellidos</label><html:text property="lastName" />
			</li>
			<li>
				<label>Email</label><html:text property="email" />
			</li>
				
			<li>
				<html:hidden property="role" value="cliente" />
				<html:submit value="Darme de alta"/>
			</li>
		</ul>
	</html:form>